package com.muyun.data.modeler.infrastructure.general.config;

import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.MessageSourceAccessor;

/**
 * 国际化信息配置
 *
 * @author muyun12
 * @date 2020-12-20 21:48:45
 * @since 0.1.0
 */
@Configuration
public class MessageConfig {

    @Bean
    public MessageSourceAccessor getMessageSourceAccessor(MessageSource messageSource){
        return new MessageSourceAccessor(messageSource);
    }

}
